﻿<UserControl x:Class="Mengsk.ProxyDelivery.App.UI.Delivery.DeliveryTestUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="800" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="80"/>
        </Grid.ColumnDefinitions>
        
        <TextBlock Grid.Row="0" Grid.Column="0" Text="当前重量:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="0" Grid.Column="1" Name="tbWeight" Text="0" Margin="3" VerticalAlignment="Center"/>

        <TextBlock Grid.Row="0" Grid.Column="2" Text="运费折扣:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="0" Grid.Column="3" Name="tbDeliveryScale" Text="1" Margin="3" VerticalAlignment="Center"/>

        <TextBlock Grid.Row="0" Grid.Column="4" Text="运费模板:" Margin="3" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="0" Grid.Column="5" Name="cbbDeliveryTemplate" Margin="3" VerticalAlignment="Center" Width="200" DisplayMemberPath="Name"/>
        
        <Button Grid.Row="0" Grid.Column="6" Name="btnCal" Margin="3" VerticalAlignment="Center" Content="计算" Click="btnCal_Click"/>
        
        <TextBlock Grid.Row="1" Grid.Column="0" Text="收货地址:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="7" Name="tbAddress" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="1" Grid.Column="8" Name="tbResult" Margin="3" VerticalAlignment="Center" IsReadOnly="True"/>
        
    </Grid>
</UserControl>
